<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:38:"./template/layres/html/user_index.html";i:1577526880;s:52:"D:\GitCode\LayZy\template\layres\html\user_base.html";i:1576323825;s:55:"D:\GitCode\LayZy\template\layres\html\index_header.html";i:1576486957;s:52:"D:\GitCode\LayZy\template\layres\html\user_menu.html";i:1576253896;s:55:"D:\GitCode\LayZy\template\layres\html\index_footer.html";i:1577955242;}*/ ?>
<!DOCTYPE html>
<html class="us">
<head>
  <meta charset="utf-8">
  <meat name="robots" content="index,nofollow" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
<title>我的信息 - <?php echo $site_config['seo_title']; ?></title>
<meta name="keywords" content="<?php echo $site_config['seo_keyword']; ?>">
<meta name="description" content="<?php echo $site_config['seo_description']; ?>">

  <link rel="shortcut icon" href="/public/images/favicon.ico">
  <link rel="stylesheet" href="/public/plugins/layui/css/layui.css">
  <link rel="stylesheet" href="/public/css/font.css">
  <link rel="stylesheet" href="/template/layres/css/public.css">
  <link rel="stylesheet" href="/template/layres/css/user.css" type="text/css" />
  <script src="/public/js/jquery-3.3.1.min.js"></script>
  


</head>
<body class="u-<?php echo $action; ?>">
<header>
  <div class="header-important">
    <div class="container layui-clear">
      <a href="/" class="logo">
        <img src="/template/layres/images/logo.png"/>
      </a>
      <img src="/template/layres/images/yxcz.png" class="logo-right-decation"/>
      <form action="/search"  class="search">
        <input type="text" placeholder="快来搜一搜吧！" value="<?php echo $keyword; ?>" name="keyword"/>
        <input type="submit" class="layui-icon" value="&#xe615;"/>
      </form>
    </div>
  </div>
  <nav class="web-nav">
    <div class="container layui-clear">
      <ul class="nav-ul">
        <li <?php if($URI == ''||$URI == '/'): ?>class="hover"<?php endif; ?>>
          <a href="/" target="_self">网站首页</a>
        </li>
        <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <li <?php if($URI == $vo['link']): ?>class="hover"<?php endif; ?>>
          <a href="<?php echo $vo['link']; ?>" target="<?php echo $vo['target']; ?>"><?php echo $vo['name']; ?></a>
        </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        <span class="border-bottom" hidden></span>
      </ul>
      <div class="header-user">
        <?php if(\think\Session::get('userid') != ''): ?>
        <img class="ico" src="<?php echo \think\Session::get('avatar'); ?>" onerror="this.src='/template/layres/images/a3o.png'"/>
        <div class="show-data">
          <div class="show logined">
            <i></i>
            <span class="logined_text">欢迎回来，<?php echo \think\Session::get('nickname'); ?></span>
            <span class="logined_text share">
							<b class="hot"></b>
							您已投稿分享过<font><?php echo \think\Session::get('posted_num'); ?></font>次 ，
							共有<font><?php echo \think\Session::get('praise_num'); ?></font>位老铁为你点赞
						</span>
            <div class="logined_btn layui-clear">
              <a href="/user/index.html">个人中心</a>
              <a href="javaScript:exit();">退出</a>
            </div>
          </div>
        </div>
      </div>
      <?php else: ?>
      <img class="ico" src="/template/layres/images/a3o.png"/>
      <div class="show-data">
        <div class="show">
          <i></i>
          <span>登录后，享受更多优质服务哦</span>
          <button onclick="openLoginK();">登录</button>
        </div>
      </div>
      <?php endif; ?>

    </div>
  </nav>
</header>
<article class="content-true">
  <section class="container layui-clear">
    <div class="index-container layui-clear">
      <div class="index-container layui-clear">
        <div class="i-nav left">
          <ul>
    <li <?php if($action == 'index'||$action == 'changeInfo'): ?>class='hover'<?php endif; ?>> <a href="/user/index.html"> <i class="iconfont icon-ziyuan"></i> 我的信息 </a> </li>
<!--    <li <?php if($action == 'shop'): ?>class='hover'<?php endif; ?>> <a href="/user/shop.html"> <i class="iconfont icon-zuanshi" style="font-size: 27px;margin-right: 7px;margin-left: -4px;"></i> 交易记录 </a> </li>-->
    <li <?php if($action == 'tg'): ?>class='hover'<?php endif; ?>> <a href="/user/tg.html"> <i class="iconfont icon-tougao"></i> 在线投稿 </a> </li>
    <li <?php if($action == 'record'): ?>class='hover'<?php endif; ?>> <a href="/user/record.html"> <i class="iconfont icon-jilu"></i> 投稿记录 </a> </li>
    <li> <a href="<?php echo url('index/user/home',array('uuid'=>session('uuid')?:0)); ?>"> <i class="iconfont icon-zhuye"></i> 个人主页 </a> </li>
    <li <?php if($action == 'comment'): ?>class='hover'<?php endif; ?>> <a href="/user/comment.html"> <i class="iconfont icon-pinglun"></i> 我的评论 </a> </li>
    <li <?php if($action == 'safe'): ?>class='hover'<?php endif; ?>> <a href="/user/safe.html"> <i class="iconfont icon-anquan"></i> 安全绑定 </a> </li>
    <li <?php if($action == 'changepass'): ?>class='hover'<?php endif; ?>> <a href="/user/changepass.html"> <i class="iconfont icon-mima1"></i> 修改密码 </a> </li>
</ul>
        </div>
        <div class="i-content right">
          
<div class="i-info layui-clear">
    <a class="info-img">
        <img src="<?php echo $user['avatar']; ?>" onerror="this.src='/template/layres/images/a3o.png'" />
    </a>
    <div class="info-info">
        <h3 class="nick"><i class="iconfont icon-nan"></i><?php echo $user['nickname']; ?><font><?php echo $user['uuid']; ?></font><b class="jp"><?php echo $user['designation']; ?></b></h3>
        <p class="intr"><?php echo $user['description']; ?></p>
    </div>
</div>
<div class="title"> 概括数据 </div>
<div class="gaikuo layui-clear">
    <b><?php echo $user['posted_num']; ?></b>
    <b><?php echo $user['passed_num']; ?></b>
    <b><?php echo $user['comment_num']; ?></b>
    <b><?php echo $user['praise_num']; ?></b>
    <b class="bx"><img src="/template/layres/images/tg.png" />投稿</b>
    <b class="bx"><img src="/template/layres/images/sh.png" />通过</b>
    <b class="bx"><img src="/template/layres/images/pl.png" />评论</b>
    <b class="bx"><img src="/template/layres/images/dz.png" />获赞</b>
</div>
<div class="title"> 我的信息 </div>
<ul class="my-info">
    <li>
        <h3>用户名</h3>
        <span><?php echo $user['username']; ?></span>
    </li>
    <li>
        <h3>我的昵称</h3>
        <span><?php echo $user['nickname']; ?></span>
    </li>
    <li>
        <h3>介绍</h3>
        <span><?php echo $user['description']; ?></span>
    </li>
    <li>
        <h3>当前级别</h3>
        <span class="jp"><?php echo $user['designation']; ?></span>
    </li>
    <li>
        <h3>性别</h3>
        <span><?php if($user['sex'] == 1): ?>女<?php else: ?>男<?php endif; ?></span>
    </li>
    <li>
        <h3>我的QQ</h3>
        <span><?php echo $user['qq_id']?substr_replace($user['qq_id'], '*****', -2, 3):'---'; ?></span>
    </li>
    <li>
        <h3>邮箱号码</h3>
        <span><?php echo $user['email']?substr_replace($user['email'], '********', -7, 4):'暂未绑定'; ?></span>
    </li>
    <li>
        <h3>手机号码</h3>
        <span><?php echo $user['email']?substr_replace($user['mobile'], '********', -2, 4):'暂未绑定'; ?></span>
    </li>
    <li>
        <h3>注册时间</h3>
        <span><?php echo $user['created_at']; ?></span>
    </li>
    <li>
        <h3>我的ID </h3>
        <span><?php echo $user['uuid']; ?></span>
    </li>
</ul>
<a href="/user/changeinfo.html" class="goChange">修改资料</a>

        </div>
      </div>

    </div>
  </section>
</article>
<!--底部区域-->
<footer>
    <div class="layui-clear container">
        <div class="left">
            <img src="/template/layres/images/logo.png" width="200" height="72"/>
            <p>
                本站提供最新游戏辅助,电影抢先看,QQ软件等。努力打造为全国网络爱好者提供优质服务的平台，让我们的生活更加精彩！
                商务合作请联系站长<a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $site_config['webmaster_qq']; ?>&site=qq&menu=yes" target="_blank" style="text-indent:0;color: #ffffff; border: 1px solid #20c4ab; display: inline-block; padding: 0px 19px; margin-left: 20px; font-size: 14px;  border-radius: 21px;">QQ <?php echo $site_config['webmaster_qq']; ?></a>
            </p>
            <ul class="layui-clear">
                <li><a href="/about/">关于我们</a></li>
                <li><a href="/about/ad.html">广告合作</a></li>
                <li><a href="/user/tg.html">在线投稿</a></li>
                <li><a href="/about/send.html">酷站收录</a></li>
                <li><a href="/about/idea.html">意见反馈</a></li>
                <li><?php echo $site_config['site_tongji']; ?></li>
                <li><a href="http://www.miitbeian.gov.cn/" target="_blank"> <?php echo $site_config['site_icp']; ?></a></li>
            </ul>
        </div>
        <div class="right">
            <img title="扫码访问手机版" alt="扫码访问手机版" src="/template/layres/images/web-code.png"/>
        </div>
    </div>
</footer>
<!--底部结束-->

<div id="loginBox">
    <div id="login" class="layui-clear"><a href="javaScript:void(0)" class="iconfont closeLogin"><i class="layui-icon layui-icon-close"></i></a>
        <div class="left"><img src="/template/layres/images/a8e.png"> <span>Welcome</span></div>
        <div class="right" id="loginmain"><h3 class="tilg">登录您的账号</h3>
            <form class="center layui-form">
                <div class="input"><i class="iconfont icon-zhanghao"></i>
                    <input type="text" placeholder="手机/邮箱/用户名" lay-verify="username"  name="username"/></div>
                <div class="input"><i class="iconfont icon-mima"></i>
                    <input type="password" placeholder="请输入您的密码"  lay-verify="password" name="password"/></div>
                <div class="input code" style="display: none"> <i class="iconfont icon-yanzhengma"></i>
                    <input type="text" placeholder="验证码" name="verify_code"  maxlength="4" />
                    <img src="<?php echo url('index/page/captcha'); ?>?'+Math.random();" title="点击可刷新验证码"
                         onclick="this.src='<?php echo url('index/page/captcha'); ?>?'+Math.random();" id="img_code"
                         style="margin-top:20px;width:144px;height:45px;cursor:pointer" /></div>
                <div class="loo layui-clear">
                    <?php if($site_config['qqlogin_status'] == 1): ?> <div class="ks"><a href="/user/qqlogin.html"><img src="/template/layres/images/qq.png"/></a></div><?php endif; ?>
                    <div class="zc"><a href="javaScript:void(0);" class="zczh">注册账号</a>
                        <a href="/user/forgetpass.html" target="_blank">找回密码</a></div>
                </div>
                <button lay-submit lay-filter="login">立即登录</button>
            </form>
        </div>
        <div class="right" id="regmain" style="display:none;"><h3 class="tilg">注册新的账号</h3>
            <form class="center  layui-form">
                <div class="input"><i class="iconfont icon-zhanghao"></i>
                    <input type="text" id="username" placeholder="请输入您的手机或邮箱" lay-verify="username" autocomplete="off" name="username"/>
                </div>
                <div class="input code"> <i class="iconfont icon-yanzhengma"></i>
                    <input type="text" placeholder="图形码" lay-verify="verify_code" id="captcha" name="captcha" maxlength="4" autocomplete="off" required class="layui-required" />
                    <img id="captchaPic" src="<?php echo url('index/page/captcha'); ?>?'+Math.random();" title="点击可刷新验证码" onclick="this.src='<?php echo url('index/page/captcha'); ?>?_='+Math.random()" class="imgcode" />
                </div>
                <div class="input code">
                    <i class="iconfont icon-yanzhengma"></i>
                    <input type="text" placeholder="验证码" lay-verify="verify_smscode" name="smscode" maxlength="6" autocomplete="off" required class="layui-required" />
                    <div   style="position: absolute; height: 42px; right: 0; top: 0; width: 110px;margin-top: 8px;">
                    <button type="button" class="layui-btn layui-btn-normal" id="sendRegCode">发送验证码
                        </button>
                    </div>
                </div>
                <div class="input"><i class="iconfont icon-mima"></i>
                    <input type="password" placeholder="请输入您的密码" lay-verify="password" autocomplete="off" name="password"/></div>

                <div class="loo layui-clear">
                    <?php if($site_config['qqlogin_status'] == 1): ?><div class="ks"><a href="/user/qqlogin.html"><img src="/template/layres/images/qq.png"/></a></div><?php endif; ?>
                    <div class="zc"><a href="javaScript:void(0);"  id="yjyl" class="yjyl">我已经有账号了？</a></div>
                </div>
                <button  lay-submit lay-filter="register">立即注册</button>
            </form>
        </div>
    </div>
</div>
<a class="backtop iconfont icon-xiangshang"></a>
<script src="/public/plugins/layui/layui.js"></script>
<script src="/template/layres/js/public.js"></script>



<script>
    var layer;
    layui.use(['layer','upload'], function(){
        layer = layui.layer;
        var upload = layui.upload;

        /* 级别的解释 */
        $(".jp").hover(function(e){
            layer.tips('普通会员：指正常用户<br/>投稿作者：分享投稿过的<br/>金牌作者：长期投稿 并享有极高通过率的作者，此类作者可享受本站优先通过和自动审核通过的特权', $(this),{
                tips: [1, '#2c2c2c'],
                area:['310px'],
                time:0
            });
        },function(e){
            layer.closeAll();
        });

        /*更换头像*/
        var uploadInst = upload.render({
            elem: '.info-img' ,
            auto: false,
            choose: function(obj){
                var files = obj.pushFile();
                obj.preview(function(index, file, result){
                    files = result;
                });
                layer.open({
                    type: 2,
                    shadeClose:true,
                    acceptMime:'image/*',
                    title:"头像裁剪",
                    area:['400px','397px'],
                    skin: 'atuikeLayerSkin1 trim',
                    content:[config.api.trim, 'no'],
                    btn:0,
                    success:function(layero, index){
                        document.getElementById("layui-layer-iframe" + index).contentWindow.selectImg(files);
                    },
                    //end:location.reload
                });
            }
        });
    });

    function setImgData(base64) {
        request({
            data:{user_head:encodeURIComponent(base64)},
            success:function (result) {
                if (result.code){
                    layer.closeAll();
                    $('.info-img').find("img")[0].src=result.data.src+"?_="+new Date().getTime();
                }else{
                    layer.msg(result.msg)
                }
            }
        });
    }
</script>

</body>
</html>